
package threads.volatiletest;

import java.security.Provider.Service;

public class TestAtomicVisibilityRunner
{

	static TestAtomicVisibility service = new TestAtomicVisibility();

	public static void main(String[] args)
	{
		service.nextSerialNumber();
		service.nextSerialNumber();

		new Thread("A")
			{

				public void run()
				{
					service.nextSerialNumber();
				};

			}.start();

		new Thread("B")
			{

				public void run()
				{
					service.nextSerialNumber();
				};

			}.start();

	}

}
